import {LabelList} from '@pangza-club/utils/types';

export const SUBJECT_DIFFCULT: LabelList = [
    {label: '入门', value: 1},
    {label: '中等', value: 2},
    {label: '困难', value: 3}
]

export const SUBJECT_TYPE: LabelList = [
    {label: '单选题', value: 1},
    {label: '多选题', value: 2},
    {label: '判断题', value: 3}
]

export function getLabelByValue(list: LabelList, value: any) {
    return list.find(item => item.value == value)?.label
}